const Mock = require('mockjs')
const { list } = Mock.mock({
  "list|10": [{
    "id": "@id",
    "title": "@ctitle",
    "desc": "@cword(10, 20)",
    "image": "@image(150x120, @color)",
    "price|100-500": 1
  }]
})
module.exports = app => {
  app.get('/api/list', (req, res) => {
    res.send({
      code: 200,
      data: list,
      message: 'ok'
    })
  })

}